package com.miracle9.game.service;

import com.miracle9.game.dao.FishKingDeskResultDB;
import com.miracle9.game.dao.MermaidDeskResultServiceDao;
import com.miracle9.game.dao.BulletFishDeskResultServiceDao;
import com.miracle9.game.dao.CardDeskResultServiceDao;
import com.miracle9.game.dao.DeskResultServiceDao;
import com.miracle9.game.dao.WaterDeskThirtyMinResultServiceDao;
import com.miracle9.game.dao.FishDeskResultServiceDao;
import com.miracle9.game.dao.JoyDeskResultServiceDao;
import com.miracle9.game.dao.LackDeskResultServiceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("deskResultService")
public class DeskResultService
{
  @Autowired
  private DeskResultServiceDao deskResultServiceDao;
  @Autowired
  private FishDeskResultServiceDao fishDeskResultServiceDao;
  @Autowired
  private CardDeskResultServiceDao cardDeskResultServiceDao;
  @Autowired
  private FishKingDeskResultDB fishKingDeskResultDB;
  @Autowired
  private BulletFishDeskResultServiceDao bulletFishDeskResultServiceDao;
  @Autowired
  private MermaidDeskResultServiceDao mermaidDeskResultServiceDao;
  @Autowired
  private LackDeskResultServiceDao lackDeskResultServiceDao;
  @Autowired
  private JoyDeskResultServiceDao joyDeskResultServiceDao;
  @Autowired
  private WaterDeskThirtyMinResultServiceDao waterDeskThirtyMinResultServiceDao;
  
  public void deletePastResult(String date)
  {
    this.deskResultServiceDao.deletePastResult(date);
    this.fishDeskResultServiceDao.deletePastResult(date);
    this.cardDeskResultServiceDao.deletePastResult(date);
    this.bulletFishDeskResultServiceDao.deletePastResult(date);
    this.mermaidDeskResultServiceDao.deletePastResult(date);
    this.lackDeskResultServiceDao.deletePastResult(date);
    this.joyDeskResultServiceDao.deletePastResult(date);
    this.waterDeskThirtyMinResultServiceDao.deletePastResult(date);
    this.fishKingDeskResultDB.deletePastResult(date);
  }
}
